module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;
  const tableModel = app.model.define('t_data_source', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    name: STRING(30),
    dialect: STRING(30),
    host: STRING(30),
    port: STRING(30),
    password: STRING(30),
    username: STRING(30), 
    database: STRING(30),
    projectId: STRING(30),
  });
  return tableModel;
};
